<?php
	require_once("pub.php");
	require_once(_ROOT."/db.php");
	require_once(_ROOT."/am/title.php");
	//require(_ROOT."/am/m_head.php");
?>
<?php
	$var_ID = $_GET['ID'];
	//echo $var_ID;
	$var_mark = checkYear($var_ID);
	$var_tid = substr($var_ID, 8, 4);
	//echo '<br />'.$var_mark.'<br />'.$var_tid.'<br />';
?>

<form action="process.php?ID=2&op=1">
<?	
	$sql = 'select * from t_title where t_mark ='.$var_mark.' and t_tid='.$var_tid;	
	$data = mysql_query($sql, $conn);
	while ($arr = mysql_fetch_array($data))
	{
		
?>
<table width="768" align="center">
	<tr>
		<td width="60"><b>内容:</b></td>
		<td width="708" align="left">
			<textarea name="title" rows="8" cols="70" style="overflow=hidden"><?php echo $arr['t_title']; ?></textarea>
		</td>
	</tr>
	<tr>
		<td><b>开始EID:</b></td>
		<td align="left">
			<textarea name="start" rows="1" cols="70" style="overflow=hidden"><?php echo $arr['t_eid_start']; ?></textarea>
		</td>
	</tr>
	<tr>
		<td><b>结束EID:</b></td>
		<td align="left">
			<textarea name="end" rows="1" cols="70" style="overflow=hidden"><?php echo $arr['t_eid_end']; ?></textarea>
		</td>
	</tr>
</table>
<table width="768" align="center" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
		<input name="submit" type="submit" value="更新" />
		<input name="reset" type="reset" value="置空"/>
		</td>
	</tr>
</table>
<?php
	}
?>
</form>
<?php
	require_once(_ROOT."/am/bottom.php");
?>